<script>
export default {
  onLaunch: function () {
    const deviceInfo = uni.getSystemInfoSync()
    if (deviceInfo.deviceType === 'phone') {
      plus.screen.lockOrientation('portrait-primary')
    } else {
      plus.screen.lockOrientation('landscape-primary')
      // plus.screen.lockOrientation('landscape-secondary')
    }
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    console.log('App Hide')
  },
}
</script>

<style lang="scss">
page {
  width: 100%;
  height: 100%;
  background-color: $uni-bg-color-grey;
}
/*每个页面公共css */
</style>
